

/* First created by JCasGen Tue Jun 30 19:02:02 UYT 2009 */
package org.idtem.component.identificador;

import org.apache.uima.jcas.JCas; 
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;

import org.apache.uima.jcas.tcas.Annotation;
import org.idtem.component.freeling.Freeling2;


import org.idtem.component.common.FreelingConsulta;


/** 
 * Updated by JCasGen Sun Jul 05 14:53:26 UYT 2009
 * XML source: C:/Users/Ricardo Bedat/Desktop/Proyecto de Grado/Repositorio/Source/worlspace/FlujoIdTem/desc/FlujoIdTemDescriptor.xml
 * @generated */
public class DataRelacion extends Annotation {
  /** @generated
   * @ordered 
   */
  public final static int typeIndexID = JCasRegistry.register(DataRelacion.class);
  /** @generated
   * @ordered 
   */
  public final static int type = typeIndexID;
  /** @generated  */
  public              int getTypeIndexID() {return typeIndexID;}
 
  /** Never called.  Disable default constructor
   * @generated */
  protected DataRelacion() {}
    
  /** Internal - constructor used by generator 
   * @generated */
  public DataRelacion(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }
  
  /** @generated */
  public DataRelacion(JCas jcas) {
    super(jcas);
    readObject();   
  } 

  /** @generated */  
  public DataRelacion(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }   

  /** <!-- begin-user-doc -->
    * Write your own initialization here
    * <!-- end-user-doc -->
  @generated modifiable */
  private void readObject() {}
     
 
    
  //*--------------*
  //* Feature: freeling2_consulta

  /** getter for freeling2_consulta - gets 
   * @generated */
  public FreelingConsulta getFreeling2_consulta() {
    if (DataRelacion_Type.featOkTst && ((DataRelacion_Type)jcasType).casFeat_freeling2_consulta == null)
      jcasType.jcas.throwFeatMissing("freeling2_consulta", "org.idtem.component.identificador.DataRelacion");
    return (FreelingConsulta)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((DataRelacion_Type)jcasType).casFeatCode_freeling2_consulta)));}
    
  /** setter for freeling2_consulta - sets  
   * @generated */
  public void setFreeling2_consulta(FreelingConsulta v) {
    if (DataRelacion_Type.featOkTst && ((DataRelacion_Type)jcasType).casFeat_freeling2_consulta == null)
      jcasType.jcas.throwFeatMissing("freeling2_consulta", "org.idtem.component.identificador.DataRelacion");
    jcasType.ll_cas.ll_setRefValue(addr, ((DataRelacion_Type)jcasType).casFeatCode_freeling2_consulta, jcasType.ll_cas.ll_getFSRef(v));}    
   
    
  //*--------------*
  //* Feature: freeling2_document

  /** getter for freeling2_document - gets 
   * @generated */
  public Freeling2 getFreeling2_document() {
    if (DataRelacion_Type.featOkTst && ((DataRelacion_Type)jcasType).casFeat_freeling2_document == null)
      jcasType.jcas.throwFeatMissing("freeling2_document", "org.idtem.component.identificador.DataRelacion");
    return (Freeling2)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((DataRelacion_Type)jcasType).casFeatCode_freeling2_document)));}
    
  /** setter for freeling2_document - sets  
   * @generated */
  public void setFreeling2_document(Freeling2 v) {
    if (DataRelacion_Type.featOkTst && ((DataRelacion_Type)jcasType).casFeat_freeling2_document == null)
      jcasType.jcas.throwFeatMissing("freeling2_document", "org.idtem.component.identificador.DataRelacion");
    jcasType.ll_cas.ll_setRefValue(addr, ((DataRelacion_Type)jcasType).casFeatCode_freeling2_document, jcasType.ll_cas.ll_getFSRef(v));}    
  }

    